package com.itheima.pojo;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.lang.String;
import java.lang.Integer;
import java.util.List;

@Table(name="t_blog")
public class Blog implements Serializable{

    @Id
    @Column(name = "uid")
    private String uid;//唯一uid

    @Column(name = "title")
    private String title;//博客标题

    @Column(name = "summary")
    private String summary;//博客简介

    @Column(name = "content")
    private String content;//博客内容

    @Column(name = "tag_uid")
    private String tagUid;//标签uid

    @Column(name = "click_count")
    private Integer clickCount;//博客点击数

    @Column(name = "collect_count")
    private Integer collectCount;//博客收藏数

    @Column(name = "file_uid")
    private String fileUid;//标题图片uid

    @Column(name = "status")
    private Integer status;//状态

    @Column(name = "create_time")
    private String createTime;//创建时间

    @Column(name = "update_time")
    private String updateTime;//更新时间

    @Column(name = "admin_uid")
    private String adminUid;//管理员uid

    @Column(name = "is_original")
    private Integer isOriginal;//是否原创（0:不是 1：是）

    @Column(name = "author")
    private String author;//作者

    @Column(name = "articles_part")
    private String articlesPart;//文章出处

    @Column(name = "blog_sort_uid")
    private String blogSortUid;//博客分类UID

    @Column(name = "level")
    private Integer level;//推荐等级(0:正常)

    @Column(name = "is_publish")
    private Integer isPublish;//是否发布：0：否，1：是

    @Column(name = "sort")
    private Integer sort;//排序字段

    @Column(name = "start_comment")
    private Integer startComment;//是否开启评论(0:否 1:是)

    private List<Tag> tagList;

    private BlogSort blogSort;

    private List<String> photoList;

    //get方法
    public String getUid() {
        return uid;
    }

    //set方法
    public void setUid(String uid) {
        this.uid = uid;
    }
    //get方法
    public String getTitle() {
        return title;
    }

    //set方法
    public void setTitle(String title) {
        this.title = title;
    }
    //get方法
    public String getSummary() {
        return summary;
    }

    //set方法
    public void setSummary(String summary) {
        this.summary = summary;
    }
    //get方法
    public String getContent() {
        return content;
    }

    //set方法
    public void setContent(String content) {
        this.content = content;
    }
    //get方法
    public String getTagUid() {
        return tagUid;
    }

    //set方法
    public void setTagUid(String tagUid) {
        this.tagUid = tagUid;
    }
    //get方法
    public Integer getClickCount() {
        return clickCount;
    }

    //set方法
    public void setClickCount(Integer clickCount) {
        this.clickCount = clickCount;
    }
    //get方法
    public Integer getCollectCount() {
        return collectCount;
    }

    //set方法
    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }
    //get方法
    public String getFileUid() {
        return fileUid;
    }

    //set方法
    public void setFileUid(String fileUid) {
        this.fileUid = fileUid;
    }
    //get方法
    public Integer getStatus() {
        return status;
    }

    //set方法
    public void setStatus(Integer status) {
        this.status = status;
    }
    //get方法
    public String getCreateTime() {
        return createTime;
    }

    //set方法
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    //get方法
    public String getUpdateTime() {
        return updateTime;
    }

    //set方法
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
    //get方法
    public String getAdminUid() {
        return adminUid;
    }

    //set方法
    public void setAdminUid(String adminUid) {
        this.adminUid = adminUid;
    }
    //get方法
    public Integer getIsOriginal() {
        return isOriginal;
    }

    //set方法
    public void setIsOriginal(Integer isOriginal) {
        this.isOriginal = isOriginal;
    }
    //get方法
    public String getAuthor() {
        return author;
    }

    //set方法
    public void setAuthor(String author) {
        this.author = author;
    }
    //get方法
    public String getArticlesPart() {
        return articlesPart;
    }

    //set方法
    public void setArticlesPart(String articlesPart) {
        this.articlesPart = articlesPart;
    }
    //get方法
    public String getBlogSortUid() {
        return blogSortUid;
    }

    //set方法
    public void setBlogSortUid(String blogSortUid) {
        this.blogSortUid = blogSortUid;
    }
    //get方法
    public Integer getLevel() {
        return level;
    }

    //set方法
    public void setLevel(Integer level) {
        this.level = level;
    }
    //get方法
    public Integer getIsPublish() {
        return isPublish;
    }

    //set方法
    public void setIsPublish(Integer isPublish) {
        this.isPublish = isPublish;
    }
    //get方法
    public Integer getSort() {
        return sort;
    }

    //set方法
    public void setSort(Integer sort) {
        this.sort = sort;
    }
    //get方法
    public Integer getStartComment() {
        return startComment;
    }

    //set方法
    public void setStartComment(Integer startComment) {
        this.startComment = startComment;
    }

    public List<Tag> getTagList() {
        return tagList;
    }

    public void setTagList(List<Tag> tagList) {
        this.tagList = tagList;
    }

    public BlogSort getBlogSort() {
        return blogSort;
    }

    public void setBlogSort(BlogSort blogSort) {
        this.blogSort = blogSort;
    }

    public List<String> getPhotoList() {
        return photoList;
    }

    public void setPhotoList(List<String> photoList) {
        this.photoList = photoList;
    }
}
